<div id="">
    <div class="listtitle">
        <table cellpadding="0" cellspacing="0" width="794px" style="background-color:#b72027;color:#fff200;">
            <tr>
                <td width="500px">
                    <div class="search_title">
                        Kết quả tìm kiếm
                    </div>
                </td>
                <td>
                    <div class="left">
                        <div class="list_order">
                            <a class="price_up <?php echo ($order == 'price_up') ? 'selected' : ''; ?>" onclick="MyController.searchProduct('price_up', <?php echo $page;?>);">Giá</a> &nbsp;|&nbsp; <a class="price_down <?php echo ($order == 'price_down') ? 'selected' : ''; ?>" onclick="MyController.searchProduct('price_down', <?php echo $page;?>);">Giá</a> &nbsp;|&nbsp; <a class="<?php echo ($order == 'name_up') ? 'selected' : ''; ?>" onclick="MyController.searchProduct('name_up',<?php echo $page;?>);">A-Z</a>&nbsp;|&nbsp; <a class="<?php echo ($order == 'name_down') ? 'selected' : ''; ?>" onclick="MyController.searchProduct('name_down', <?php echo $page;?>);">Z-A</a>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div id="">

        <div class="list2">
<?php foreach ($aryProduct as $key => $product) { ?>
                <div class="item">
                    <div class="left">
                        <div class="border">
                            <?php if($product['product_type_id'] == 1) {?>
                            <div class="image_new">&nbsp;</div>
                            <?php } ?>
                            <div class="image">
                                <div class="divvalign">
                                    <div class="divvalign2">
                                        <a href="/sanpham/<?php echo $product['product_id'];?>/<?php echo $product['product_title_filter'];?>.html" title="<?php echo $product['product_title'];?>"><img src="<?php echo $product['product_main_image'];?>" alt="<?php echo $product['product_title'];?>" title="<?php echo $product['product_title'];?>"></a>
                                    </div>
                                </div>
                            </div>
                            <div>
                                <input class="inputCompare" type="checkbox" id="<?php echo $product['product_id'];?>" onclick="MyController.addCompareList(<?php echo $product['product_id'];?>)"><span style="cursor: pointer;" onclick="MyController.compareItem();">Chọn so sánh</span>
                            </div>
                        </div>
                    </div>
                    <div class="right">
                        <div class="col2">
                            <div class="name">
                                <a href="/sanpham/<?php echo $product['product_id'];?>/<?php echo $product['product_title_filter'];?>.html" title="<?php echo $product['product_title'];?>"><?php echo $product['product_title'];?></a>
                            </div>
                            <div class="item_highlight">
                                <?php echo $product['product_highlight'];?>
                            </div>
                            <div><a class="showall" href="/sanpham/<?php echo $product['product_id'];?>/<?php echo $product['product_title_filter'];?>.html" title="Xem chi tiết">Xem chi tiết</a></div>
                        </div>
                        <div style="display: block;" class="col3">
                            <div class="top">
                                <?php if($product['product_price_active_km'] == 1){?>
                                <div class="price">
                                    Giá cũ : <span class="price_older"><?php echo number_format($product['product_price_vnd'], 0, ',', '.'); ?>&nbsp;VNĐ</span>
                                </div>
                                <div class="price">
                                    Giá KM : <span class="number"><?php echo number_format($product['product_price_vnd_km'], 0, ',', '.'); ?>&nbsp;VNĐ</span>
                                </div>
                                <?php }else{ ?>
                                <div class="price">
                                    Giá bán : <span class="number"><?php echo ($product['product_price_vnd'] != 0) ? number_format($product['product_price_vnd'], 0, ',', '.').'&nbsp;VNĐ' : 'Call'; ?></span>
                                </div>
                                <?php } ?>
                                <div class="vat">
                                    <?php echo ($product['product_is_vat'] == 1) ? 'Đã bao gồm VAT' : 'Chưa bao gồm VAT';?>
                                </div>

                                    <div style="padding-left: 40px;">
                                        <?php if(in_array($product['product_id'], $aryOrderProductId)) {?>
                                        <div>
                                            Đã có trong giỏ hàng
                                        </div>
                                        <div>
                                            <a href="/order/chi-tiet-gio-hang.html" title="Xem giỏ hàng">Xem giỏ hàng</a>
                                        </div>
                                        <?php }else{ ?>
                                        <div id="product_order_<?php echo $product['product_id'];?>">
                                            <div class="btnorder" onclick="MyController.addProductToShopCat(<?php echo $product['product_id'];?>, <?php echo $product['product_category_id'];?>);"></div>
                                        </div>
                                        <?php }?>

                                    </div>
                            </div>
                            <div class="under">
                                <div class="bullet_pro">
                                    <?php echo $product['product_promotional'];?>
                                </div>

                            </div>
                        </div>
                    </div>
                    <div class="clear">
                    </div>
                </div>
<?php } ?>`


        </div>
        <div class="clear" style="height: 10px;"></div>
        <table width="794" cellspacing="0" cellpadding="0">
        <tbody>
            <tr>
                <td>
                    <table width="794" cellspacing="0" cellpadding="0" height="35" style="background-color:#b72027;color:#fff200;">
                        <tbody>
                            <tr>
                                <td align="right" style="padding:0 20px;vertical-align: middle;">
                                    <?php echo $strPaging;?>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </td>
            </tr>

        </tbody>
    </table>
    <div style="height: 5px;" class="clear">
    </div>
    </div>


</div>